package com.structure.enums;

/**
 * @Author Tanyu
 * @Date 2020/6/10 16:43
 * @Description
 * @Version 1.0
 */
public class Season {

  private final String seasonName;
  private Season(String seasonName){
    this.seasonName=seasonName;
  }

  //提供当前枚举的多个对象,为public static final修饰
  public static final Season SPRING = new Season("春天");
  public static final Season SUMMER = new Season("夏天");
  public static final Season AUTUMN = new Season("秋天");
  public static final Season WINTER = new Season("冬天");

  public String getSeasonName(){
    return seasonName;
  }

  @Override
  public String toString() {
    return "Season{" +
        "seasonName='" + seasonName + '\'' +
        '}';
  }
}
